angular.module('pook')
.config ($stateProvider, $urlRouterProvider,menuManageProvider) ->
    $stateProvider
    .state('login',
        url: "/login"
        templateUrl: "templates/login/login.html"
        controller: "WFLoginCtrl"
    )
    .state('main',
        url:"/main"
        views:menuManageProvider.$get().genViews(),
        controller: "WFMainCtrl"
    )
    $urlRouterProvider.otherwise 'login'
